package org.xdq.demo.service.security.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.xdq.demo.dao.security.HomeDao;
import org.xdq.demo.service.security.HomeService;
import org.xdq.demo.vo.MenuVo;

import java.util.List;

@Service
@Transactional(rollbackFor = Exception.class)
public class HomeServiceImpl implements HomeService {

    @Autowired
    private HomeDao homeDao;

    @Transactional(readOnly = true)
    @Override
    public List<MenuVo> getMenuList() {
        return homeDao.findMenuVoList();
    }
}
